package com.example.demo.control;

import com.example.demo.Entity.CoreData;
import com.example.demo.service.CoreDataService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("Order")
public class CoreDataController {
    @Resource
    private CoreDataService coreDataService;
    @GetMapping("Coke")
    public void P()
    {
        CoreData data = coreDataService.caculateResultMoney();
       System.out.println(data.getRalculate());
    }

    @GetMapping("Vue")
    public void P1()
    {
        System.out.println("1111");
    }
}
